home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
stars.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
562b
|
38 lines
/*
* $VER: Stars 3.0 (13.2.98)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Draws a lot of random stars into the current buffer.
*
*/
OPTIONS RESULTS
GetMain ; IF result = "" THEN EXIT ; PARSE VAR result name width height depth .
SaveUndo ; Undo Off ; Redraw Off
BeginBar 'Stars' 1000
DO i = 1 TO 1000
Bar i
LockGui
x = randu() * width
y = randu() * height
g = random(64,255)
SetPalette '-1' g g g
Point x y
UnlockGui Quiet
END
EndBar
Undo On ; Redraw On ; Redraw
EXIT